﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Masterpage.Master"
    CodeBehind="ViewProfile.aspx.vb" Inherits="VintageCars.WebForm1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:carsconn %>"
        ProviderName="<%$ ConnectionStrings:carsconn.ProviderName %>" SelectCommand="SELECT [U_Name], [U_DOB],[U_Email], [U_Desc],[U_Country], [U_Image] FROM [User_Profile] WHERE ([U_Name] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="U_Name" QueryStringField="U_Name" Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <center >
    <asp:DetailsView ID="DetView" runat="server" CellPadding="4" DataSourceID="SqlDataSource1"
        Height="50px" Width="400px" AutoGenerateRows="False" ForeColor="Black" GridLines="None">
        <AlternatingRowStyle BackColor="Gray"  ForeColor="Black"  />
        <CommandRowStyle BackColor="Silver"   Font-Bold="True" />
        <EditRowStyle BackColor="Gray"  />
        <FieldHeaderStyle BackColor="Silver" Font-Bold="True" ForeColor ="Black" />
        <Fields>
        <asp:ImageField DataImageUrlField="U_Image" HeaderText="Profile Picture">
                <ControlStyle Height="75px" Width="75px" />
                <ItemStyle Height="75px" Width="75px" />
            </asp:ImageField>
            <asp:BoundField DataField="U_Name" HeaderText="User Name" SortExpression="U_Name" />
            <asp:BoundField DataField="U_DOB" HeaderText="Date of Birth" SortExpression="U_DOB" />
            <asp:BoundField DataField="U_Email" HeaderText="Email ID" SortExpression="U_Email" />
            <asp:BoundField DataField="U_Desc" HeaderText="About Me" SortExpression="U_Desc" />
            <asp:BoundField DataField="U_Country" HeaderText="Country" SortExpression="U_Country" />
            
        </Fields>
        <FooterStyle BackColor="Gray"  ForeColor="White" Font-Bold="True" />
        <HeaderStyle BackColor="Gray"  Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="Gray" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="Silver"  ForeColor="Black" />
    </asp:DetailsView>
    </center>
    <br />
    <center >
    <asp:Button ID="btnEditProfile" runat="server" Text="Edit Profile" />
    </center>
</asp:Content>
